import { orderignsGet } from '@/api/orderingsApi'
export default{
    state:{
        msgList:[]
    },
    mutations:{
        addMsg(state,userList){
            state.msgList = userList
        }
    },
    actions:{
        async orderignsGet({ commit }){
            let ret = await orderignsGet(page = 1)
            //console.log(ret)
            if(ret.code === 0){
                commit('addMsg',ret.backMsg.usermsg)
            }
            return ret.data.userlist
        }
    }
}